import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const querySafeStandList = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/querySafeStandList", json);
  return data;
};

export const updateAudit = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/updateAudit", json);
  return data;
};


export const updateSafeStand = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/updateSafeStand", json);
  return data;
};


export const addSafeStand = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/addSafeStand", json);
  return data;
};



export const delSafeStand = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/delSafeStand", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}


export const uploadFile = async (formData) => {
  let { data } = await axios.post(API_URL + "rSafeStandApi/uploadFile", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}